package com.ww.scm.valueObject.grid;

import java.util.ArrayList;
import java.util.List;


public class HeadRow {
	
	private String trStyle;
    private List<Cell> activeCells;
   
    
    public HeadRow()
    {
    	activeCells = new ArrayList<Cell>();
    }
    
    public void addHeadCell(String colName){
    	Cell colCell = new Cell();
		colCell.setValue0(colName);
    }
    
    public void addHeadCell(String colName,String style){
    	Cell colCell = new Cell();
		colCell.setValue0(colName);
		colCell.setValue1(style);
    }

    public void addHeadCell(String colName,String rowspan,String colspan,String style){
    	Cell colCell = new Cell();
		colCell.setValue0(colName);
		colCell.setRowspan(rowspan);
		colCell.setColspan(colspan);
		colCell.setValue1(style);
    }
    
    
    public void addActiveCell(String colName){
    	Cell colCell = new Cell();
		colCell.setValue0(colName);
		activeCells.add(colCell);
    }
    
    public void addActiveCell(String colName,String style){
    	Cell colCell = new Cell();
		colCell.setValue0(colName);
		colCell.setValue1(style);
		activeCells.add(colCell);
    }
    
    public void addActiveCell(String colName,String rowspan,String colspan,String style){
    	Cell colCell = new Cell();
		colCell.setValue0(colName);
		colCell.setRowspan(rowspan);
		colCell.setColspan(colspan);
		colCell.setValue1(style);
		activeCells.add(colCell);
    }

	public void addActiveCells(List<Cell> activeCells) {
		this.activeCells.addAll(activeCells);
	}
	
	public void addActiveCells(Cell activeCell) {
		this.activeCells.add(activeCell);
	}

	public String getTrStyle() {
		return trStyle;
	}

	public List<Cell> getActiveCells() {
		return activeCells;
	}

	public void setTrStyle(String trStyle) {
		this.trStyle = trStyle;
	}
    
}
